package com.gjt.dlmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gjt.common.utils.PageUtils;
import com.gjt.dlmall.product.entity.AttrGroupEntity;
import com.gjt.dlmall.product.vo.AttrGroupWithAttrsVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组表
 *
 * @author gjt
 * @email g45852139@163.com
 * @date 2021-09-02 23:10:21
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取指定分类下得所有数据
     * @param params
     * @param categoryId
     * @return
     */
    PageUtils queryPage(Map<String, Object> params, Long categoryId);

    List<AttrGroupWithAttrsVO> getAttrGroupWithAttrByCategoryId(Long categoryId);

}

